/*
 * @Author: CodeHare
 * @Date: 2023-09-14 18:05:21
 * @LastEditors: CodeHare
 * @LastEditTime: 2023-12-13 16:40:22
 * @Description: 自研EMS远程控制
 */

class EmsRomoteControlModel {
  /// 指令集Socket值
  late Map instructSocketMap = {};

  /// 系统启动状态值
  String sysStartStatus = '';

  /// 系统停止状态值
  String sysStopStatus = '';

  /// 系统复位状态值
  String sysRestStatus = '';

  /// BMS主接触器闭合状态值
  String bmsCloseStatus = '';

  /// BMS主接触器断开状态值
  String bmsBreakStatus = '';

  /// 手/自动切换状态值
  String manualAutomaticSwitcStatus = '';

  /// 请求参数
  var params = {};
}

/// 控制指令
class SystemStatusControl {
  /// 控制名称
  String label;

  /// 设置的值
  String value;

  /// 权限值
  bool? enabled;

  SystemStatusControl(
    this.label,
    this.value,
    this.enabled,
  );
}
